package cn.sxt.yxl.controller.head;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.sxt.yxl.common.util.PageInfoUtil;
import cn.sxt.yxl.users.pojo.AAdmins;
import cn.sxt.yxl.users.service.IUsersService;

/**
 * 不需要登录的controller
 * @author wangjiang
 *
 */
@Controller
public class NoLoginController {

	@Resource
	private IUsersService usersService;
	
	@RequestMapping("/adminsList")
	public String adminsList(HttpServletRequest request){
		PageInfoUtil pageInfoUtil = new PageInfoUtil();
		Map<String, Object> condMap = new HashMap<String, Object>();
		List<AAdmins> adminsList = usersService.findCondListAdminsService(pageInfoUtil, condMap);
		request.setAttribute("adminsList", adminsList);
		return "/head/adminsList";
	}
}
